package process_demo.singleton;

/**
 * @author haomin
 * @date 2022/04/25 19:17
 **/
public class StarvingMode {
    // 是线程安全的
    // 类加载的时候执行
    // JVM 保证了类加载的过程是线程安全的
    private static StarvingMode instance = new StarvingMode();

    public static StarvingMode getInstance() {
        return instance;
    }

    private StarvingMode() {}
}
